home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14957 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: H E L P
  5. Date: 2 Apr 1996 15:35:45 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4js6jh$ndr@solutions.solon.com>
  8. References: <N.040296.013047.18@DynamicPPP-185.HIP.CAM.ORG> <Pine.A32.3.91.960402135001.121719B-100000@green.weeg.uiowa.edu>
  9. NNTP-Posting-Host: solutions.solon.com
  10.  
  11. In article <Pine.A32.3.91.960402135001.121719B-100000@green.weeg.uiowa.edu>,
  12. The Amorphous Mass  <robinson@blue.weeg.uiowa.edu> wrote:
  13. >On Tue, 2 Apr 1996 ramrod@cam.org wrote:
  14.  
  15. >> The part that I am having a hard time with is the part that
  16. >> whatever number I enter for the age, I'm supposed to get the same number
  17. >> of happy faces, automatically.  For example If I say I am 45 years old,
  18. >> then the program should show 45 happy faces.
  19.  
  20. >  You need a loop.  Look up the for, while, and do while loop constructs  in 
  21. >your textbook.
  22.  
  23. This is a bit strong.  You don't *need* a loop.  You just probably want one.
  24.  
  25. Obviously, if you're assuming age, you would have no more than about 150 ifs
  26. to test, (assuming humans), and if you just want to do it for 45, it's even
  27. easier.
  28.  
  29. -s
  30. -- 
  31. Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
  32. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  33. FUCK the communications decency act.  Goddamned government.  [literally.]
  34. The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
  35.